<!DOCTYPE html>
<html>
				<head>
				<meta charset="UTF-8">
			<title></title>
			<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
			<script type="text/javascript">
				document.write('<script src="../../js/fix.js?rd=?rd=' + Math.random() + '"><\/script>');
			</script>
			<script type="text/javascript">
				link(['../../css/reset.css','../../fonts/iconfont/iconfont.css']);
			</script>
			<script>
				script();
			</script>
		<script src="../../js/mui.min.js"></script>
			<script src="../../js/app/H5plus.js"></script>
			<style type="text/css">
				.copy_box{
					background: #FFFFFF;
					height: 100vh;
					padding: 0.2rem 0rem;
				}
				.copy_box img{
					width: 0.6rem;
					margin: 0 auto;
					display: block;
					padding-top: 0.05rem;
					padding-bottom: 0.15rem;
				}
				.copy_box h5{
					text-align: center;
				}
				.copy_box input[type="text"]{
					width: 80%;
					margin-left: 10%;
					height: 0.5rem;
					background: #EEEEEE;
					border: none;
					color: #999999;
					margin-top: 0.1rem ;
					font-size: 0.16rem;
				}
				.btn_box{
					width: 80%;
					margin-left: 10%;
					}
					.btn_box button{
						background: #47BAFE;
						color: #FFFFFF;
						width: calc(50% - 0.1rem);
						border:none;
					}
					.btn_box .no{
						background: #d35757;
					}
					.btn_box .yes{
						float: right;
					}
			</style>
	</head>
	<body>
		<div class="mui-content copy_box" id="copy_box">
			<img src="../../images/mine/wechat.png" alt="">
				 <h5>检测到微信文章</h5>
				 <input type="text" id="copy_text" readonly="readonly" disabled="disabled">
				 <div class="btn_box">
					 <button  onclick="back()" class="no">取消</button>
					 <button onclick="goEdit()" class="yes">去编辑</button>
			</div>
		</div>
		<script type="text/javascript">
             mui.init();
			 mui.plusReady(function(){
			 })
			  function back(){
				  mui.back();
				 setTimeout(function(){
					 plus.navigator.setStatusBarBackground("#47BAFE");  
				 },200)
			 }
			 document.addEventListener("setStyle",function(e){
				 document.getElementById("copy_text").value=e.detail.copy_text;
			 })
			 function goEdit(){
				 	 document.getElementById("copy_box").style.display="none";
					 plus.webview.currentWebview().setStyle({
						 opacity:0
					 })
					 plus.navigator.setStatusBarBackground("#47BAFE");  
				 	mui.openWindow({
				 	url:"copy_edit_Share.html",
				 	id:"copy_edit_Share.html",
						extras:{
						 link:document.getElementById("copy_text").value 
					},
					styles: {
						titleNView: {
							autoBackButton: true,
							backgroundcolor: "#47BAFE",
							titleText: "编辑文章",
							titlecolor: "white",
							buttons: [{
									fontSrc: 'fonts/mui.ttf',
									float: 'right',
									text: '\ue405',
									onclick: "javascript:plus.webview.getWebviewById('customerDetail').evalJS('goShare()');"
								},
					
							]
						},
					
					},
				 	 waiting:{
				 		 autoShow:false
				 	 }
				 });
			 setTimeout(function(){
					plus.webview.currentWebview().close();
			},300);
				
			 }
		</script>
	</body>
</html>
